﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SpotlessWeb.Models
{
    public class EnquiryBasicReportViewModel
    {
        public EnquiryBasicReportViewModel(DateTime? from, DateTime? to,
                int completedCount,
            int completedEnquiryCount, 
            int completedComplaintCount,
            float completedTotal,
            
            int completedWebsiteEnquiryCount,
            int completedWebsiteComplaintCount,
            float countWebsiteCompensation,

            int completedEmailEnquiryCount,
            int completedEmailComplaintCount,
            float countEmailCompensation,

            int completedTelephoneEnquiryCount,
            int completedTelephoneComplaintCount,
            float countTelephoneCompensation,

            int completedLetterEnquiryCount,
            int completedLetterComplaintCount,
            float countLetterCompensation,

            int completedRetailerEnquiryCount,
            int completedRetailerComplaintCount,
            float countRetailerCompensation

            )
        {
            this.From = from;
            this.To = to;
            this.CompletedCount = completedCount;
            this.CompletedEnquiryCount = completedEnquiryCount;
            this.CompletedComplaintCount = completedComplaintCount;
            this.CompletedTotal = completedTotal;

            this.CompletedWebsiteEnquiryCount = completedWebsiteEnquiryCount;
            this.CompletedWebsiteComplaintCount = completedWebsiteComplaintCount;
            this.CompletedWebsiteCount = completedWebsiteEnquiryCount + completedWebsiteComplaintCount;
            this.CompletedWebsiteCompensation = countWebsiteCompensation;

            this.CompletedEmailEnquiryCount = completedEmailEnquiryCount;
            this.CompletedEmailComplaintCount = completedEmailComplaintCount;
            this.CompletedEmailCount = completedEmailEnquiryCount + completedEmailComplaintCount;
            this.CompletedEmailCompensation = countEmailCompensation;

            this.CompletedTelephoneEnquiryCount = completedTelephoneEnquiryCount;
            this.CompletedTelephoneComplaintCount = completedTelephoneComplaintCount;
            this.CompletedTelephoneCount = completedTelephoneEnquiryCount + completedTelephoneComplaintCount;
            this.CompletedTelephoneCompensation = countTelephoneCompensation;

            this.CompletedLetterEnquiryCount = completedLetterEnquiryCount;
            this.CompletedLetterComplaintCount = completedLetterComplaintCount;
            this.CompletedLetterCount = completedLetterEnquiryCount + completedLetterComplaintCount;
            this.CompletedLetterCompensation = countLetterCompensation;

            this.CompletedRetailerEnquiryCount = completedRetailerEnquiryCount;
            this.CompletedRetailerComplaintCount = completedRetailerComplaintCount;
            this.CompletedRetailerCount = completedRetailerEnquiryCount + completedRetailerComplaintCount;
            this.CompletedRetailerCompensation = countRetailerCompensation;
            
            
            
        }

        public DateTime? From { get; private set; }
        public DateTime? To { get; private set; }
        public int CompletedCount { get; private set; }
        public int CompletedEnquiryCount { get; private set;}
        public int CompletedComplaintCount { get; private set; }
        public float CompletedTotal { get; private set; }

        public int CompletedWebsiteEnquiryCount { get; private set; }
        public int CompletedWebsiteComplaintCount { get; private set; }
        public int CompletedWebsiteCount { get; private set; }
        public float CompletedWebsiteCompensation{ get; private set; }

        public int CompletedEmailEnquiryCount { get; private set; }
        public int CompletedEmailComplaintCount { get; private set; }
        public int CompletedEmailCount { get; private set; }
        public float CompletedEmailCompensation { get; private set; }

        public int CompletedTelephoneEnquiryCount { get; private set; }
        public int CompletedTelephoneComplaintCount { get; private set; }
        public int CompletedTelephoneCount { get; private set; }
        public float CompletedTelephoneCompensation { get; private set; }

        public int CompletedLetterEnquiryCount { get; private set; }
        public int CompletedLetterComplaintCount { get; private set; }
        public int CompletedLetterCount { get; private set; }
        public float CompletedLetterCompensation { get; private set; }

        public int CompletedRetailerEnquiryCount { get; private set; }
        public int CompletedRetailerComplaintCount { get; private set; }
        public int CompletedRetailerCount { get; private set; }
        public float CompletedRetailerCompensation { get; private set; }
        
        
    }
}
